﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Metodesa.Master" AutoEventWireup="true" CodeBehind="ListCompra.aspx.cs" Inherits="Metodesa.Views.Home.ListCompra" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<asp:TextBox ID="searchbox" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;
    <asp:DropDownList ID="type" runat="server" 
        >
        <asp:ListItem Selected="True" Value="all">Todas</asp:ListItem>
        <asp:ListItem Value="1">Completadas</asp:ListItem>
        <asp:ListItem Value="0">Pendientes</asp:ListItem>
    </asp:DropDownList>
    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="FindButton" runat="server" Text="Buscar" 
        PostBackUrl="~/Views/Home/ListCompra.aspx?" CausesValidation="False" 
        onclick="FindButton_Click" />
    
    &nbsp;&nbsp; &nbsp;
    <asp:Button ID="PrepareAddButton" runat="server" Text="Agregar" 
        PostBackUrl="~/Views/Home/ListCompra.aspx?a=add" 
        CausesValidation="False" onclick="PrepareAddButton_Click" 
        />
     
     
     <asp:RadioButtonList ID="option" runat="server">
        <asp:ListItem Value="Codigo">Código</asp:ListItem>
        <asp:ListItem Value="Fecha">Fecha</asp:ListItem>
        <asp:ListItem Value="Empleado">Empleado</asp:ListItem>
        <asp:ListItem Value="Proveedor">Proveedor</asp:ListItem>
    </asp:RadioButtonList>
    
    <br/>
    <asp:Panel ID="ListCompras" runat="server" Visible="False">
    
     <p>&nbsp;</p>

     </asp:Panel>
     
      <asp:Label ID="label" runat="server" Text="Label" Visible="False"></asp:Label>
      
    <asp:Panel ID="PanelAdd" runat="server" Visible="False">
    
     
         <table style="width:100%;">
             <tr>
                 <td>
                     Empleado</td>
                 <td>
                     Proveedor</td>
                 <td>
                     Fecha</td>
                     <td>
                     </td>
             </tr>
             <tr>
                 <td>
                     <asp:DropDownList ID="EmpleadoList" runat="server">
                     </asp:DropDownList>
                 </td>
                 <td>
                     <asp:DropDownList ID="ProveedorList" runat="server">
                     </asp:DropDownList>
                 </td>
                 
                 <td>
                     <asp:TextBox style="width: 88px" ID="taFecha" runat="server" MaxLength="12" 
                         Enabled="False"></asp:TextBox>
                     
                 </td>
                     <td>
                         <asp:Button ID="AddButton" runat="server" Text="Agregar" 
                             onclick="AddButton_Click" />
                 </td>
             </tr>
             <tr>
             <td></td>
             <td></td>
             <td><asp:LinkButton ID="cal" runat="server" Text="calendario" 
                             onclick="ShowCalendar" PostBackUrl="~/Views/Home/ListCompra.aspx?a=add&b=muestra" /></td>
             <td></td>
             </tr>
         </table>
        
        <div align="center">
        <asp:Panel ID="Calendario" runat="server" Visible="False">
        <br/>
        <br/>
        <asp:Calendar ID="Calendar1" runat="server" Font-Size="Smaller" 
                         onselectionchanged="Calendar1_SelectionChanged"><NextPrevStyle BorderColor="#3399FF" /></asp:Calendar>
        </asp:Panel>
        </div>
        
     </asp:Panel>
     
       <asp:Panel ID="PanelEdit" runat="server" Visible="False">
    
     
         <table style="width:100%;">
             <tr>
                 <td>
                     Empleado</td>
                 <td>
                     Proveedor</td>
                 <td>
                     Fecha</td>
                     <td>
                     </td>
             </tr>
             <tr>
                 <td>
                     <asp:DropDownList ID="EmpleadoList2" runat="server">
                     </asp:DropDownList>
                 </td>
                 <td>
                     <asp:DropDownList ID="ProveedorList2" runat="server">
                     </asp:DropDownList>
                 </td>
                 
                 <td>
                     <asp:TextBox style="width: 88px" ID="teFecha" runat="server" MaxLength="12" 
                         Enabled="False"></asp:TextBox>
                     
                 </td>
                     <td>
                         <asp:Button ID="EditButton" runat="server" Text="Editar" onclick="EditButton_Click" 
                              />
                 </td>
             </tr>
             <tr>
             <td></td>
             <td></td>
             <td><asp:LinkButton ID="cal2" runat="server" Text="calendario" 
                              PostBackUrl="~/Views/Home/ListCompra.aspx?a=s&b=muestra2" 
                     onclick="cal2_Click" /></td>
             <td></td>
             </tr>
         </table>
        
        <div align="center">
        <asp:Panel ID="Calendario2" runat="server" Visible="False">
        <br/>
        <br/>
        <asp:Calendar ID="Calendar2" runat="server" Font-Size="Smaller" onselectionchanged="Calendar2_SelectionChanged" 
                         ><NextPrevStyle BorderColor="#3399FF" /></asp:Calendar>
            <asp:HiddenField ID="EditId" runat="server" />
        </asp:Panel>
        </div>
        
     </asp:Panel>


</asp:Content>
